package org.jsola.hr.provider.impl;

import lombok.extern.slf4j.Slf4j;
import org.jsola.hr.provider.ISalaryTemplateProviderService;
import org.jsola.salary.dto.SalaryTemplateAddDTO;
import org.jsola.salary.entity.SalaryTemplateDO;
import org.jsola.salary.service.ISalaryTemplateService;
import org.jsola.salary.vo.SalaryTemplateVO;
import org.jsola.user.core.TokenUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhenghua
 */
@Service("hrSalaryTemplateProviderService")
@Slf4j
public class SalaryTemplateProviderServiceImpl implements ISalaryTemplateProviderService {

    @Autowired
    private ISalaryTemplateService salaryTemplateService;


    @Override
    public SalaryTemplateDO save(SalaryTemplateAddDTO salaryTemplateAddDTO, TokenUser tokenUser) {
        return salaryTemplateService.save(salaryTemplateAddDTO, tokenUser);
    }

    @Override
    public List<SalaryTemplateDO> selectByIds(List<Long> salaryTemplateIdList, TokenUser tokenUser) {
        return salaryTemplateService.selectByIds(salaryTemplateIdList, tokenUser);
    }

    @Override
    public List<SalaryTemplateVO> selectByCompanyId(String companyId, TokenUser tokenUser) {
        return salaryTemplateService.selectByCompanyId(companyId, tokenUser);
    }


}
